extends StateBase


var title_level: TitleLevel
var window_options_show_finish: bool = false


func on_enter(owner = null, params = null):
	title_level = owner as TitleLevel
	window_options_show_finish = false
	
	await title_level.ui_title.show_window_options().animation_finished
	window_options_show_finish = true
	

func on_exit(owner = null):
	pass


func on_process(delta: float, owner = null):
	pass
	
	
func on_physics_process(delta: float, owner = null):
	if window_options_show_finish:
		title_level.process_exit_window_options()
		title_level.process_window_mode_cooldown_timer(delta)
	
	
